/**
 * 产品FX报表初始化
 */
var FxReport = {
    id: "FxReportTable",	//表格id
    seItem: null,		//选中的条目
    table: null,
    layerIndex: -1
};

/**
 * 初始化表格的列
 */
FxReport.initColumn = function () {
    return [
        {field: 'selectItem', radio: false, visible: false},
        {title: 'Value Date', field: 'valueDate', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'Trade Date', field: 'tradeDate', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'Product Level 3', field: 'productLevel3', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'Ccy1', field: 'currency1', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'Notional', field: 'notional', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'Ccy2', field: 'currency2', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'Counter value', field: 'counterValue', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'Rate', field: 'rate', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'MTM (USD)', field: 'mtmUsd', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'Market Rate', field: 'marketRate', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'Swap Point', field: 'swapPoint', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'Classification', field: 'classification', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'Strategy Code', field: 'strategyCode', visible: true, align: 'center', valign: 'middle', width: '100px'},
    ];
};

/**
 * 产品FX_Total报表初始化
 */
var FxTotalReport = {
    id: "FxTotalReportTable",	//表格id
    seItem: null,		//选中的条目
    table: null,
    layerIndex: -1
};

/**
 * 初始化表格的列
 */
/*formatter: function (value, row, index) { return DateUtils.changeDateFormat(value);} */
FxTotalReport.initColumn = function () {
    return [
        {field: 'selectItem', radio: false, visible: false},
        {title: 'Value Date', field: 'valueDate', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'Ccy1', field: 'currency1', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'Notional', field: 'notional', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'Ccy2', field: 'currency2', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'Counter value', field: 'counterValue', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'Rate', field: 'rate', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'MTM (USD)', field: 'mtmUsd', visible: true, align: 'center', valign: 'middle', width: '100px'},
        {title: 'Strategy Code', field: 'strategyCode', visible: true, align: 'center', valign: 'middle', width: '100px'},
    ];
};
